﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Directory.Model
{
	public class CategoryUser
	{
		private string _username;
		private int _categoryId;
		private bool _permitAllow;
		private bool _isPremtInherited;

		public CategoryUser(string username, int cateogyrId, bool permitAllow, bool isPermitInherited)
		{
			_username = ModelHelper.GetStringParameter(username);
			_categoryId = cateogyrId;
			_permitAllow = permitAllow;
			_isPremtInherited = isPermitInherited;
		}

		public string UserName
		{
			get { return _username; }
		}
		public int CategoryId
		{
			get { return _categoryId; }
		}
		public bool PermitAllow
		{
			get { return _permitAllow; }
		}
		public bool IsPermitInherited
		{
			get { return _isPremtInherited; }
		}
	}
}
